package cn.legend.travel.admin.destination.service;

import cn.legend.travel.admin.destination.pojo.param.DistrictAddNewParam;
import cn.legend.travel.admin.destination.pojo.param.DistrictUpdateParam;
import cn.legend.travel.admin.destination.pojo.vo.DistrictAdminVO;
import cn.legend.travel.common.pojo.po.DistrictSimplePO;
import cn.legend.travel.common.pojo.vo.PageData;

import java.util.List;

public interface IDistrictService {

    void rebuild();

    void delete(Long id);

    PageData<DistrictAdminVO> listByParent(Long pId, Integer pageNum);

    void update(DistrictUpdateParam param);

    void addNew(DistrictAddNewParam param);

    List<DistrictSimplePO> listAllByParent(Long parentId);
}
